String.classPrototype.readOperator
- Instance of
- Parameters
-
position /*Number*/
- Return value
-
/*String*/
Description
Read operator (stringInstance[position]
) returns character at given position. Negative indicies can be used, and count from the end of the string.
Example
console.write("Harry"[1]);
Expected output
a